package cn.vic.config;

import java.util.concurrent.ConcurrentHashMap;

/**
 * Created by vic on 2017/8/25.
 */
public class ConfigStatic {
    private static final ConcurrentHashMap<String, Object> config = new ConcurrentHashMap<>();

    public static void add(String key, Object obj) {
        config.put(key, obj);
    }

    public static void put(String key, Object obj) {
        config.put(key, obj);
    }

    public static Object get(String key) {
        return config.get(key);
    }

    public static <T> T get(String key, T a) {
        return (T) config.get(key);
    }
    public static <T> T get(String key, Class<T> tClass) {
        return (T) config.get(key);
    }


}
